export const formItems = [
  {
    prop: "order_sn",
    label: "订单号",
    placeholder: "请输入",
    lg: 6,
    type: "input",
    otherOptions: {},
  },
  {
    prop: "user_id",
    label: "商户",
    type: "select",
    options: [],
    // key:''
    value: (item) => {
      return item.username + "(" + item.nickname + ")";
    },
    key: "id",
    placeholder: "请选择",
    lg: 6,
    otherOptions: {
      // style: "width:200px",
    },
  },
  {
    prop: "type",
    label: "类型",
    type: "select",
    options: [
      {
        key: 1,
        value: "加款",
      },
      {
        key: 2,
        value: "扣款",
      },
      {
        key: 3,
        value: "消费",
      },
      {
        key: 4,
        value: "退款",
      },
    ],
    placeholder: "请选择",
    lg: 6,
    otherOptions: {
      // style: "width:200px",
    },
  },
  {
    prop: "created_at",
    label: "创建时间",
    lg: 10,
    type: "datetimerange",
    valueFormat: "x",
    otherOptions: {
      defaultTime: [
        new Date(2000, 1, 1, 0, 0, 0),
        new Date(2000, 1, 1, 23, 59, 59),
      ],
    },
  },
];
export const propList = [
  {
    prop: "order_sn",
    label: "订单号",
  },
  {
    prop: "user.username",
    label: "商户",
  },
  {
    prop: "money",
    label: "变动金额",
  },
  {
    prop: "bf_money",
    label: "变动前金额",
  },
  {
    prop: "af_money",
    label: "变动后金额",
  },
  {
    slotName: "type",
    label: "类型",
  },
  {
    prop: "remark",
    label: "备注",
  },
  {
    prop: "created_at",
    label: "创建时间",
  },
];
